package com.zmn.oms.services.interfaces.redistribute;

import com.zmn.oms.model.entity.redistribute.OrderWorkRedistributeInfo;
import com.zmn.oms.model.query.redistribute.OrderWorkRedistributeExport;
import com.zmn.oms.model.query.redistribute.OrderWorkRedistributeQuery;
import com.zmn.oms.model.vo.redistribute.OrderWorkRedistributeInfoVO;

import java.util.List;

public interface OrderWorkRedistributeInfoService {

	/**
	 * 分页查询
	 *
	 * @param query
	 * @return
	 */
	List<OrderWorkRedistributeInfoVO> listPageByQuery(OrderWorkRedistributeQuery query);

	Integer countByQuery(OrderWorkRedistributeQuery query);

	/**
	 * 根据Id查找改派申请及详细信息
	 *
	 * @param id 改派Id
	 * @return
	 */
	OrderWorkRedistributeInfoVO findApplyInfoByRedistributeId(Long id);

	OrderWorkRedistributeInfo findRedistributeInfoById(Long id);

	/**
	 * 查询改派导出数据
	 *
	 * @param query
	 * @return
	 */
	List<OrderWorkRedistributeExport> asyncExportListRedistributeByQuery(OrderWorkRedistributeQuery query);

    int delete(Long id);

    int insert(OrderWorkRedistributeInfo record);

    int updateByPrimaryKeySelective(OrderWorkRedistributeInfo record);
}